﻿
#include <stdio.h>

#include <log4lite/log4lite.h>
#include <tchar.h>
#include <locale>

int _tmain(int argc, TCHAR* argv[])
{
	setlocale(LC_ALL, "");

	log4lite::AppenderPtr appender(new log4lite::ConsoleAppender);
    appender->setLayout(std::auto_ptr<log4lite::Layout>(new log4lite::SongLayout));
	log4lite::logger.addAppender(appender);

	log4lite::logger.log(log4lite::WARN_LOG_CATAGORY, T_TEXT("hahaheiheihei"), __FILE__, __LINE__);



	PRINTF_WARN(T_TEXT("我日啊"));
	PRINTF_WARN(T_TEXT("fuck fuck"));
	
	getchar();
	return 0;
}
